package cc.z8g.browser.html

import androidx.annotation.WorkerThread
import io.reactivex.rxjava3.core.Single

/**
 * A factory that builds an HTML page.
 */
interface HtmlPageFactory {

    /**
     * Build the HTML page and emit the URL.
     */
    @WorkerThread
    fun buildPage(): Single<String>

    fun createPage(): String

}
